﻿using AutoMapper;
using Sample.Novel.Application.Contracts.Authors;
using Sample.Novel.Domain.Authors.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sample.Novel.Application
{
    /// <summary>
    /// 
    /// </summary>
    public class AutoMapperProfile
        :Profile
    {
        /// <summary>
        /// 
        /// </summary>
        public AutoMapperProfile() {
            CreateMap<Author, AuthorOutput>();
            CreateMap<NewAuthorInput, Author>().ForMember(x=>x.Id,opt=>opt.Ignore());

        }
    }
}
